package cn.virens.common.spring.exception;

import javax.servlet.ServletException;

public class NotFileFoundException extends ServletException {
    private static final long serialVersionUID = 6043044008593052017L;

    private String code;
    private String type;

    public NotFileFoundException(String type, String code) {
        this.type = type;
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public String getMessage() {
        return toString();
    }

    @Override
    public String toString() {
        return "NotFileFoundException [code=" + code + ", type=" + type + "]";
    }

}
